var Mock = require('mockjs')

Mock.mock('/mock/api/home/goodArticlesDataList', 'get', () => {
  const goodArticlesData = Mock.mock({
    list: [
      {
        id: 1,
        title: '万字好文python从入门到精通...',
        author: 'Daisy',
        image: require('./images/blueArticle.png'),
      },
      {
        id: 2,
        title: '万字好文python从入门到精通...',
        author: 'Daisy',
        image: require('./images/greenArticle.png'),
      },
      {
        id: 3,
        title: '万字好文python从入门到精通...',
        author: 'Daisy',
        image: require('./images/redArticle.png'),
      },
    ],
  })

  return {
    code: 200,
    goodArticlesData,
  }
})
